package com.zhentao.tot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 自媒体图文素材信息对象 wm_material
 * 
 * @author ruoyi
 * @date 2025-04-17
 */
public class WmMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 自媒体用户ID */
    @Excel(name = "自媒体用户ID")
    private Integer userId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String url;

    /** 素材类型 0图片 1视频 */
    @Excel(name = "素材类型 0图片 1视频")
    private Integer type;

    /** 是否收藏 */
    @Excel(name = "是否收藏")
    private Integer isCollection;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setIsCollection(Integer isCollection) 
    {
        this.isCollection = isCollection;
    }

    public Integer getIsCollection() 
    {
        return isCollection;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("url", getUrl())
            .append("type", getType())
            .append("isCollection", getIsCollection())
            .append("createTime", getCreateTime())
            .toString();
    }
}
